Skip to content

Pull to refresh pulls WHOOP and Strava too - #56

Merged
ehonis merged 1 commit into
mainfrom
sync/private-main
Nov 11, 2026
Merged

ehonis merged 1 commit into
mainfrom
sync/private-main

Conversation

@ehonis

@ehonis ehonis commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Published from the private repository by oss-sync.

  • Pull to refresh pulls WHOOP and Strava too

7 files changed, 157 insertions(+), 6 deletions(-)

Published from the private repository by oss-sync.

- Pull to refresh pulls WHOOP and Strava too

 7 files changed, 157 insertions(+), 6 deletions(-)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T14:54:47.464305Z 52a2371 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ehonis
ehonis merged commit 4f400dc into main Nov 11, 2026
3 checks passed
@ehonis
ehonis deleted the sync/private-main branch November 11, 2026 14:51

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 52a23710c9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

const c = cache as { configured?: boolean; fetchedAt?: string | null } | null
if (c?.configured !== true) return false
const at = c.fetchedAt ? Date.parse(c.fetchedAt) : NaN
return !(now - at < FRESH_MS)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Treat future cache timestamps as stale

When the server clock is ahead of the phone—such as after a clock correction or restoring a future-dated cache—now - at is negative and therefore always less than FRESH_MS. Pull-to-refresh consequently skips that integration until the timestamp catches up, potentially leaving newly synced WHOOP or Strava data absent for a long time. Only consider the cache fresh when its age is both nonnegative and below the threshold.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant